package cn.idietrade.idietradegoodsorder8003.demo.mapper;

import cn.idietrade.common.pojo.SecondGoods;
import cn.idietrade.common.pojo.SecondOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 作者：李永康
 * @createTime 2022/11/30 15:01
 * @description 描述
 */
@Mapper
public interface GoodsOrderMapper {
    List<SecondOrder> orderList(@Param("buyerId") Integer buyerId,@Param("sellerId") Integer sellerId,@Param("orderNo") Integer orderNo);

    //根据商品id查询商品信息
    List<SecondGoods> selectGoodsInfo(@Param("goodsId") List<Integer> goodsId);

    //减库存
    int updateGoodsNum(@Param("goodsId") Integer goodsId,@Param("num") Integer num);
}
